// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * ReportReceivableDetail
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "report_receivable_detail", autoResultMap = true)
@Schema(title = "应收报告详情")
public class ReportReceivableDetail implements Serializable {

  /**
   * 所属应收报告
   */
  @TableField(value = "`parent_report_receivable`")
  @JoinField(ReportReceivable.class)
  @Schema(title = "所属应收报告")
  private Long parentReportReceivable;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 单据时间
   */
  @TableField(value = "`posted_date_locale`")
  @Schema(title = "单据时间")
  private java.util.Date postedDateLocale;

  /**
   * 结算编号
   */
  @TableField(value = "`fid`")
  @Schema(title = "结算编号")
  private String fid;

  /**
   * MSKU
   */
  @TableField(value = "`seller_sku`")
  @Schema(title = "MSKU")
  private String sellerSku;

  /**
   * SKU
   */
  @TableField(value = "`local_sku`")
  @Schema(title = "SKU")
  private String localSku;

  /**
   * 品名
   */
  @TableField(value = "`local_name`")
  @Schema(title = "品名")
  private String localName;

  /**
   * 摘要
   */
  @TableField(value = "`abstract_name`")
  @Schema(title = "摘要")
  private String abstractName;

  /**
   * 本期增加
   */
  @TableField(value = "`increase`")
  @Schema(title = "本期增加")
  private java.math.BigDecimal increase;

  /**
   * 本期减少
   */
  @TableField(value = "`decrease`")
  @Schema(title = "本期减少")
  private java.math.BigDecimal decrease;

  /**
   * 余额
   */
  @TableField(value = "`balance`")
  @Schema(title = "余额")
  private java.math.BigDecimal balance;

  /**
   * settlement_id
   */
  @TableField(value = "`settlement_id`")
  @Schema(title = "settlement_id")
  private String settlementId;
}
